package com.javasm.service.JINXIAOService.impl;


import com.javasm.dao.JINXIAODao.SysTaskDao;
import com.javasm.entity.JINXIAOEntity.SysTasks;
import com.javasm.service.JINXIAOService.SysTasksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysTaskServiceImpl  implements SysTasksService {
    @Autowired
    private SysTaskDao sysTaskDao;

    @Override
    public List<SysTasks> listRunning() {
        List<SysTasks> running = sysTaskDao.queryTaskList("running");
        return running;
    }

    @Override
    public void changeStatus(String id,String tstatus) {
         sysTaskDao.updateStatus(tstatus,id);
    }

    @Override
    public SysTasks queryById(String id) {
        return  sysTaskDao.queryById(id);

    }

    @Override
    public Boolean updateById(String id) {
      return   sysTaskDao.updateById(id);
    }


    @Override
    public SysTasks queryById(Object id) {
        return null;
    }

    @Override
    public List<SysTasks> queryByIds(List ids) {
        return null;
    }

    @Override
    public List<SysTasks> queryList(SysTasks obj) {
        return null;
    }

    @Override
    public Boolean insert(SysTasks obj) {
        return null;
    }

    @Override
    public Boolean update(SysTasks obj) {
        return null;
    }

    @Override
    public Boolean deleteById(Object id) {
        return null;
    }

    @Override
    public Boolean deleteByIds(List ids) {
        return null;
    }
}
